<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <ui:composition template="/faces/templates/template.xhtml">
        <ui:define name="content">
            <b><u>Kontakt</u></b>
            <h:form>
                <h:panelGrid columns="3">
                    <h:outputLabel value="Vorname"/>
                    <h:inputText id="vorname" value="#{managedBeanKontakt.vorname}" required="true" requiredMessage="Bitte Vornamen eingeben"/>
                    <h:message for="vorname" showDetail="false" showSummary="true"/>
                    <h:outputLabel value="Nachname"/>
                    <h:inputText id="nachname" value="#{managedBeanKontakt.nachname}" required="true" requiredMessage="Bitte Nachnamen eingeben"/>
                    <h:message for="nachname" showDetail="false" showSummary="true"/>
                    <h:outputLabel value="Email"/>
                    <h:inputText id="email" value="#{managedBeanKontakt.email}" required="true" requiredMessage="Bitte Email eingeben" validatorMessage="Bitte gültige Adresse eingeben"/>
                    <h:message for="email" showDetail="false" showSummary="true"/>
                    <h:outputLabel value="Text"/>
                    <h:inputTextarea rows="10" id="text" value="#{managedBeanKontakt.text}" required="true" requiredMessage="Bitte Text eingeben"/>
                    <h:message for="text" showDetail="false" showSummary="true"/>
                    <h:commandButton action="#{managedBeanKontakt.senden()}" value="Senden"/>
                    <h:commandButton action="#{managedBeanKontakt.cancel()}" immediate="true" value="Abbrechen"/>
                </h:panelGrid> 
            </h:form>
        </ui:define>
    </ui:composition>
</html>

